package com.springBoot.springBootSysCore.modules.repository.system;

import com.springBoot.springBootSysCore.common.repository.IBaseRepository;
import com.springBoot.springBootSysCore.modules.entity.system.SysFaq;
import com.springBoot.springBootSysCore.modules.entity.system.SysFeedBackLable;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by timo on 2017/11/1.
 */
public interface SysFeedBackLableRepository extends IBaseRepository<SysFeedBackLable, String> {

    /**
     * 批量删除--假删除
     * @param asList
     */
    @Modifying
    @Query("update SysFeedBackLable set  delFlag = '1' where id in (?1)")
    public void updateDelFlag(List<String> asList);

    @Modifying
    @Query("delete from SysFeedBackLable where id in (?1)")
    public void deleteByIds(List<String> asList);
}
